package cn.itsource.basic.service;

import cn.itsource.basic.Domain.BaseDomain;
import cn.itsource.basic.query.BaseQuery;
import cn.itsource.basic.query.PageList;

import java.util.List;

public interface IBaseService<T extends BaseDomain,Q extends BaseQuery> {
    //分页查询
    PageList<T> getPageList(Q query);

    //添加和修改
    void addOrUpdate(T t);

    //删除
    void delete(Long id);

    //查询所有
    List<T> getAll();
}
